<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>TinyButStrong</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="tbs_us_examples_0styles.css" rel="stylesheet" type="text/css">
</head>
<body>
<p align="center" class="title-page">Example of Event function</p>
<table width="500" border="0" align="center" cellpadding="2" cellspacing="0">
  <tr>
    <td>
      <p>Parameters <span class="text-prm">onformat</span> and <span class="text-prm">ondata</span> allow to execute an event function each time a field or a block is merged.<br>
        <br>
        <span class="text-section2">In this example, the parameter ondata is used to display a colored comment using the m_event_b1() function.</span><br>
      </p></td>
  </tr>
</table>
<br>
<table border="1" align="center" cellpadding="2" cellspacing="0">
  <tr bgcolor="#CACACA">
    <td width="30"><strong>Position</strong></td>
    <td width="80"><strong>Nickname</strong></td>
    <td><strong>Score</strong></td>
    <td width="60"><div align="center"><strong>Level</strong></div></td>
    <td width="60"><div align="center"><strong>Date</strong></div></td>
  </tr>
  <tr bgcolor="#F0F0F0">
    <td>[b1.#]</td>
    <td>[b1.res_name;block=tr;ondata=m_event_b1]</td>
    <td><div align="right">[b1.res_score]</div></td>
    <td><div align="center">[b1.level;htmlconv=no]</div></td>
    <td><div align="center">[b1.res_date;frm='dd/mm/yy']</div></td>
  </tr>
  <tr bgcolor="#E6E6E6">
    <td>[b1.#]</td>
    <td>[b1.res_name;block=tr;ondata=m_event_b1]</td>
    <td><div align="right">[b1.res_score]</div></td>
    <td><div align="center">[b1.level;htmlconv=no]</div></td>
    <td><div align="center">[b1.res_date;frm='dd/mm/yy']</div></td>
  </tr>
</table>
</body>
</html>
